package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.GroupMessageModel;
import com.dibang.app.operation.model.impl.GroupMessageModelImpl;
import com.dibang.app.operation.presenter.abs.GroupMessagePresenter;
import com.dibang.app.operation.presenter.impl.GroupMessagePresenterImpl;
import com.dibang.app.operation.view.abs.GroupMessageView;
import com.dibang.app.operation.view.impl.GroupMessageViewImpl;

public class GroupMessageProImpl extends AbsProvider<GroupMessageView, GroupMessagePresenter, GroupMessageModel> {
    @Override
    public GroupMessageView getView() {
        return BeanFactory.getInstance(GroupMessageViewImpl.class);
    }

    @Override
    public GroupMessagePresenter getPresenter() {
        return BeanFactory.getInstance(GroupMessagePresenterImpl.class);
    }

    @Override
    public GroupMessageModel getModel() {
        return BeanFactory.getInstance(GroupMessageModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(GroupMessageViewImpl.class,GroupMessagePresenterImpl.class,GroupMessageModelImpl.class);
    }
}
